<?php

namespace app\validate\api\housing;

use think\Validate;

class HousingSourceValidate extends Validate
{
	
	/*"`housing_source_door_head_img` ===========  '照片门头',
  `housing_source_title` =========== '标题',
  `region_name` =========== '区域名字',
  `region` =========== '区域',
  `address` =========== '地址',
  `shop_type` =========== '1商铺类型   2写字楼类型',
  `suitable_for_business_form`=========== '适合业态',
  `architecture_area`  ===========  '建筑面积',
  `architecture_rent` =========== '租金',
  `remaining_lease_term`  ===========  '剩余租期',
  `transfer_fee` =========== '转让费',
  `matching_setting` =========== '配套设置',
  `housing_label`=========== '房源标签',
  `creatdate` =========== '创建时间',
  `name` =========== '联系姓名',
  `phone` =========== '联系电话',
  `gender` =========== '性别',
  `metro_station_id` =========== '地铁站',
  `room_number`=========== '楼层房间号',
  `facing_street`=========== '面朝街道     1=是  2=不是',
  `width_building_area` =========== '建筑面宽',
  `building_floor_height` =========== '建筑层高',
  `building_depth` =========== '建筑进深',
  `management_status`=========== '经营状态 1营业中 2空置',
  `mode_detain`=========== '押金',
  `mode_pay`=========== '付几个月',
  `start_month`=========== '起始租月',
  `exempt_month`=========== '免租期',
  `electricity_charge` =========== '电费',
  `water_charge` =========== '水费',
  `Introduction` blob COMMENT '房源介绍',
  `real_estate_certificate`=========== '房产证',
  `type`=========== '发布方式     1=租赁   2 转让 3买卖 4 分租 5转租',
  `housing_source_Indoor_img` =========== '室内照片',
  `housing_source_other_img` =========== '其他照片',
  `office_building`=========== '写字楼装修',
  `split_up`=========== '是否分割',
  `is_register`=========== '是否注册',
  `work_station`=========== '工位',
  `is_del` ,
  `user_id` ,
  `is_up` ==========='上下架 1上架  2下架',
  `is_proprietor` =========== '是否个人  1=是   2   =  否',
  `status` ==========='审核状态  1未审核   2审核成功 3审核失败',
  `views` int(11) DEFAULT '0',
  `room_suit`=========== '几室  住宅',
  `towards`=========== '朝向   通用',
  `office`=========== '几厅   住宅',
  `lavatory`=========== '几个厕所',
  `lon`=========== '经纬度',
  `lat`=========== '经纬度',
  `identity`=========== '业主1  租客2  中介 3   经纪人4',
  `room_rate`=========== '得房率',
  `business_license_img`=========== '营业执照',
  `total` =========== '总价',
  `Roomage`=========== '房龄',
  `decorate`  '装修状态',
  `property` '产权性质',
  `LegalStatus`  '法律状态',
  `MeansOfTransaction`=========== '交易方式',
  `TaxCommitment`=========== '税费承担',
  `DeliveryCycle`=========== '交割周期',
  `housing_type`=========== '房源类型  1商铺   2写字楼3公寓 4民宅 ',
  `is_phone` ==========='是否展示电话   1展示  2不展示',
  `orientation`=========== '方向  朝向',
  `floor`=========== '楼层',"
  `original_lease_term =========== '原租期剩余,"
  `management_fee =========== '物业费,"
	*/
//公共区域

	protected $rule = [
		'housing_source_Indoor_img' => 'require',
//		'housing_source_door_head_img' => 'require',
//		'housing_source_other_img' => 'require',
		'housing_source_title'   => 'require',
		'region'   => 'require',
		'metro_station_id'   => 'require',
		'address'   => 'require',
//		'architecture_area'   => 'require',
//		'matching_setting'   => 'require',
//		'housing_label'   => 'require',
		'name'   => 'require',
		'phone'   => 'require',
		'is_phone'   => 'require',
		'region_name'   => 'require',
		'Introduction'   => 'require',
//		'lat'   => 'require',
//		'lon'   => 'require',
		'housing_type'   => 'require',
//		'real_estate_certificate'   => 'require',
		'House_viewing_time'   => 'require',
		'towards'   => 'require',

	];


	protected $message = [
//		'housing_source_door_head_img.require' => '户型图片不能为空',
		'housing_source_Indoor_img.require'   => '室内照片不能为空',
//		'housing_source_other_img.require'   => '视频不能为空',
		'housing_source_title.require' => '标题不能为空',
		'region.require' => '区域不能为空',
		'region_name.require' => '区域名称不能为空',
		'metro_station_id.require' => '地铁站不能为空',
		'address.require' => '地址不能为空',
//		'architecture_area.require' => '建筑面积不能为空',
//		'matching_setting.require' => '配套设置不能为空',
//		'housing_label.require' => '房源标签不能为空',
		'name.require' => '名字不能为空',
		'phone.require' => '电话不能为空',
		'is_phone.require' => '是否展示电话不能为空',
		'Introduction.require' => '房源介绍不能为空',
//		'lon.require' => '经纬度必传',
//		'lat.require' => '经纬度必传',
		'housing_type.require' => '房源类型必传',
//		'real_estate_certificate.require' => '相关资质必传',
		'House_viewing_time.require' => '看房时间必传',
		'towards.require' => '朝向必传',

	];

}